(function($){
    /**
     * 服务器端发来的错误代码与错误描述的映射关系.
     * 此信息放到前端能够减少网络信息传输量.
     */
    ujs.define('ErrorsMap', 'ujs.util', {
        '1001' : 'Fail to register',
        '1002' : 'Account name is illegal',
        '1003' : 'Password is illegal',
        '1004' : 'Device Token is illegal',
        '1005' : 'Terminal equipment is illegal',
        '1006' : 'Firm domain is illegal',
        '1007' : 'Firm is null',
        '1008' : 'Firm name is illegal',
        '1009' : 'Firm domain is exists',
        '1010' : 'Add firm failed',
        '1011' : 'ID is illegal',
        '1012' : 'Delete firm failed',
        '1013' : 'Query GroupUserIndex failed',
        '1014' : 'Login failed',
        '4001' : 'Session expired',
        '4002' : 'Session illegal'
    }); 
})($); 